package com.aspose.cells.b.a.b.d.a;

import com.aspose.cells.a.c.zn;
import com.aspose.cells.a.d.zfq;
import com.aspose.cells.b.a.b.zg;
import java.awt.FontMetrics;

public final class za implements Cloneable {
   private final String a;
   private final zg b;
   private zfq c;

   public za(String var1, zfq var2, zg var3) {
      this.a = var1;
      this.b = var3;
      this.c = var2;
   }

   public int a(FontMetrics var1, int var2, float var3) {
      float var4 = 0.0F;

      for(int var5 = var2; var5 < this.a.length(); ++var5) {
         char var6 = this.a.charAt(var5);
         if (var6 == '\n') {
            return var5;
         }

         String var7 = this.a.substring(var2, var5 + 1);
         var4 = zn.b(var1, this.c, var7, this.b.g(), this.b.h(), this.b.k());
         if (var4 > var3) {
            return var5;
         }
      }

      return this.a.length();
   }

   public String a(int var1, int var2) {
      return this.a.substring(var1, var2);
   }
}
